package com.caishi.lkx.user.mapper;

import com.caishi.lkx.user.model.LoginExpandModel;
import com.zzw.common.entity.IBSDMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author by keray
 * date:2021/4/7 11:06 上午
 */
public interface LoginExpandMapper extends IBSDMapper<LoginExpandModel, String> {

    @Select("select cule.* from cu_user_login_expand as cule where cule.user_id = #{userId} order by login_time desc limit 1")
    LoginExpandModel userLastLoginData(@Param("userId") String userId);
}
